from flask import Flask
from flask_restful import Api
from flask_sqlalchemy import SQLAlchemy
from web.config import Config

APP = Flask(__name__)
APP.config.from_object(Config)
DB = SQLAlchemy(APP)
API = Api(APP)

from web.route.user import html
from web.route.system import html

from web.route.user.api import UserLogin

API.add_resource(UserLogin, '/api/user/login', endpoint='api_user_login')